import App from './App'
import https from '@/config/index.config.js'
import uView from '@/uni_modules/uview-ui'
Vue.prototype.$https = https
Vue.use(uView)

// #ifndef VUE3

import Vue from 'vue'
import './style/index.scss';
import "@/static/css/bg.css"
import axios from '@/utils/http.js'
import share from "@/config/share.js"
import common from '@/config/common.js'
Vue.prototype.$noMultipleClicks = common.noMultipleClicks;
Vue.prototype.$antiClicks = common.antiClicks;
Vue.mixin(share)
/**
 * 给Vue函数添加一个原型属性$axios 指向Axios
 * 这样做的好处是在vue实例或组件中不用再去重复引用Axios 直接用this.$axios就能执行axios 方法了
 * 在.vue中使用，this.$axios.get
 * @param {Object} config
 */
Vue.prototype.$axios = axios;
Vue.config.productionTip = false

App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif